<?php

namespace App\Tools;

class Json
{
    public static function encode($data): bool|string
    {
        return json_encode($data, JSON_UNESCAPED_UNICODE);
    }

    public static function decode($data)
    {
        return json_decode($data, true);
    }
}
